package com.windowes.weichang.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
public class DemandOperateLog implements Serializable {
    private Integer id;

    /**
     * 操作内容
     */
    private String content;

    private Integer userId;

    private Integer demandId;

    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDemandId() {
        return demandId;
    }

    public void setDemandId(Integer demandId) {
        this.demandId = demandId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    /**
     * 快速创建log
     *
     * @param content
     * @param userId
     * @param demandId
     * @return
     */
    public static DemandOperateLog createLog(String content, Integer userId, Integer demandId) {
        DemandOperateLog log = new DemandOperateLog();
        log.setContent(content);
        log.setUserId(userId);
        log.setDemandId(demandId);
        return log;
    }
}